﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BacklogParser.Models
{
    public class Agent : AddressBook
    {
        public Agent()
        {
        }

        public string ChangeDate { get; internal set; }
        public string ChangeGazetteNum { get; internal set; }
        public string RepType { get; internal set; }
        public string Sequence { get; internal set; }

        public static Agent Create(AddressBook addressbook)
        {
            return new Agent
            {
                Name = addressbook.Name,
                Address1 = addressbook.Address1,
                Address2 = addressbook.Address2,
                Address3 = addressbook.Address3,
                Address4 = addressbook.Address4,
                Address5 = addressbook.Address5,
                Country = addressbook.Country
            };
        }
    }
}
